home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 27.zip
/
BS1 part 27
/
PhonepakV2_d1.adf
/
rexx
/
NoFax.ppak
< prev
next >
Wrap
Text File
|
1993-04-28
|
1KB
|
33 lines
/************************************************************************/
/* This is a simple script to demonstrate the use of an ARexx menu host.*/
/* First, open the demo system on the PhonePak Switchboard and set the */
/* ARexx menu host to "MenuPort" using the System/Set ARexx Menu Host */
/* menu item. Close the Switchboard, choosing the Save option of the */
/* "Save Changes" requester. Then, run this program (rx NoFax.ppak) and*/
/* use local access mode to start the demo system. Pressing #8 will */
/* give you an error message, thereby preventing faxes from being */
/* received. Of course, if you really wanted to disable fax reception, */
/* you would also have to turn AUTOFAXX off in LineMan. */
/************************************************************************/
addlib("libs:rexxsupport.library",0,-30,0)
menuport = openport('MenuPort')
do forever
r=0
do until r
r=waitpkt('MenuPort')
end
packet = getpkt('MenuPort')
arg = getarg(packet,0)
parse var arg menu line mailbox entry
if menu = MESSAGEEDIT & entry = 8 then
reply(packet,2)
else
reply(packet,0)
end